package leetcode.code162;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution162 implements IDebug {

	abstract public int findPeakElement(int[] nums);

	@Override
	public void debug1() {
		String nums = "[1,2,3,1]";
		int expect = 2;
		this.debug1(nums, expect);
	}

	private void debug1(String nums, int expect) {
		int result = this.findPeakElement(HelpDebug.str2array3(nums));
		HelpDebug.compare(expect, result);
	}

	@Override
	public void debug2() {
		String nums = "[1,2,1,3,5,6,4]";
		int expect = 1;
		this.debug1(nums, expect);
	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
